from django import template
register = template.Library()

@register.simple_tag
def str_just(num):
    str_num = str(num).rjust(3,'0')
    return "#{}".format(str_num)